﻿class CWinContainerInfo
{
	var Caption:String;
	var Name:String;
	var Father:String;
	var Version:Number;
	var BackgroundMovie:String;
	public function CWinContainerInfo(value:String)
	{
		if(value)
		{
			Caption = value;
			var index:Number = value.lastIndexOf(".");
			if(index eq -1)
			{
				Name = value;
				Father = value;
			}else
			{
				var _Name:String = value.slice(index+1,value.length);
				Name = _Name;
				var _Father:String = value.slice(0,index);
				Father = _Father;
			}
			BackgroundMovie ="Resource\\BackgroundMovie\\Index.BKMovie.swf";
		}else
		{
			Caption = "Index";
			Name = "Index";
			Father = "Index";
			BackgroundMovie ="Resource\\BackgroundMovie\\Index.BKMovie.swf";
		}
	}
	public function getVersion():Number
	{
		if(Version)
		{
			return Version;
		}else
		{
			Version =1;
			return Version;
		}
	}
	public function updateVersion():Void
	{
		Version++;
	}
	public function setCaption(value:String):Void
	{
		Caption = value;
	}
	public function getCaption():String
	{
		//trace(Caption);
		return Caption;
	}
	public function setBackgroundMovie(value:String):Void
	{
		BackgroundMovie = value;
	}
	public function getBackgroundMovie():String
	{
		return BackgroundMovie;
	}
}